package middleware

import (
	"github.com/gin-gonic/gin"
	"github.com/gin-contrib/cors"
)


type defaultConfig struct {

}

func Cors() gin.HandlerFunc{
	return cors.Default()
}

func CORSWithConfig(config cors.Config) gin.HandlerFunc {
	return cors.New(config)
}